//
//  ViewController.m
//  BPDemo
//
//  Created by SiYugui on 2019/11/5.
//  Copyright © 2019年 SiYugui. All rights reserved.
//

#import "ViewController.h"

#import <CTMediator+A.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton *button = [[UIButton alloc] init];
    button.backgroundColor = [UIColor whiteColor];
    button.titleLabel.font = [UIFont systemFontOfSize:20];
    [button setTitle:@"jump To A" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(buttonClicked:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    button.frame = CGRectMake(0, 0, 100, 50);
    button.center = self.view.center;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)buttonClicked:(UIButton*)sender {
    UIViewController *Avc = [[CTMediator sharedInstance] A_aViewController];
    [self.navigationController pushViewController:Avc animated:YES];
}

@end
